package com.zbl.zblproject.contract.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2019/3/14
 * 合同
 */
@TableName("zbl_contract")
public class Contract {

    /**
     * 合同ID
     */
    @TableId(type = IdType.AUTO)
    private int contractId;

    /**
     * 合同编号
     */
    private String number;

    /**
     * 供应商ID
     */
    @TableField("suppliers_id")
    private int supplierId;

    private String suppliersName;

    /**
     * 供应商简称
     */
    private String suppliersDesc;

    /**
     * 地址
     */
    private String suppliersAddress;

    /**
     * 手机号
     */
    private String suppliersTelephone;

    /**
     * 合同开始时间
     */
    private LocalDateTime startTime;

    /**
     * 合同结束时间
     */
    private LocalDateTime endTime;

    /**
     * 现返率
     */
    private double cashBack;

    /**
     * 最高合同采购额
     */
    private double purchasesHighest;

    /**
     * 最高返点率
     */
    private double rebatesHighest;

    /**
     * 预测最高年返
     */
    private double planRebatesHighest;

    /**
     * 最低采购额
     */
    private double purchasesLowest;

    /**
     * 最低返点率
     */
    private double rebatesLowest;

    /**
     * 预测最低年返金额
     */
    private double planRebatesLowest;


    private LocalDateTime addTime;

    /**
     * 备注
     */
    private String note;

    /**
     * 任务其它约定内容
     */
    private String comment;


    @TableField(exist = false)
    private List<Rebates> rebates;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getContractId() {
        return contractId;
    }

    public void setContractId(int contractId) {
        this.contractId = contractId;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public double getCashBack() {
        return cashBack;
    }

    public void setCashBack(double cashBack) {
        this.cashBack = cashBack;
    }

    public double getPurchasesHighest() {
        return purchasesHighest;
    }

    public void setPurchasesHighest(double purchasesHighest) {
        this.purchasesHighest = purchasesHighest;
    }

    public double getRebatesHighest() {
        return rebatesHighest;
    }

    public void setRebatesHighest(double rebatesHighest) {
        this.rebatesHighest = rebatesHighest;
    }

    public double getPlanRebatesHighest() {
        return planRebatesHighest;
    }

    public void setPlanRebatesHighest(double planRebatesHighest) {
        this.planRebatesHighest = planRebatesHighest;
    }

    public double getPurchasesLowest() {
        return purchasesLowest;
    }

    public void setPurchasesLowest(double purchasesLowest) {
        this.purchasesLowest = purchasesLowest;
    }

    public double getRebatesLowest() {
        return rebatesLowest;
    }

    public void setRebatesLowest(double rebatesLowest) {
        this.rebatesLowest = rebatesLowest;
    }

    public double getPlanRebatesLowest() {
        return planRebatesLowest;
    }

    public void setPlanRebatesLowest(double planRebatesLowest) {
        this.planRebatesLowest = planRebatesLowest;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getSuppliersName() {
        return suppliersName;
    }

    public void setSuppliersName(String suppliersName) {
        this.suppliersName = suppliersName;
    }

    public List<Rebates> getRebates() {
        return rebates;
    }

    public void setRebates(List<Rebates> rebates) {
        this.rebates = rebates;
    }

    public String getSuppliersDesc() {
        return suppliersDesc;
    }

    public void setSuppliersDesc(String suppliersDesc) {
        this.suppliersDesc = suppliersDesc;
    }

    public String getSuppliersAddress() {
        return suppliersAddress;
    }

    public void setSuppliersAddress(String suppliersAddress) {
        this.suppliersAddress = suppliersAddress;
    }

    public String getSuppliersTelephone() {
        return suppliersTelephone;
    }

    public void setSuppliersTelephone(String suppliersTelephone) {
        this.suppliersTelephone = suppliersTelephone;
    }
}
